# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         question1
# Description:
# Author:       ASUS
# Date:         2019/3/9
#-------------------------------------------------------------------------------



def sortNumbers(*numbers,type = "asc"):
    if type == "asc":
        return sorted(numbers)
    else:
        return sorted(numbers,reverse=True)

if __name__ == '__main__':
    list = [6,8,7,4,9,3,2,5]
    print(sortNumbers(*list))
    print(sortNumbers(*list,type="desc"))

